/*
 ============================================================================
 Name		: TerraWSDocument.cpp
 Author	  : Jan Sanchez
 Copyright   : For testing purposes only!
 Description : CTerraWSDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "TerraWSAppUi.h"
#include "TerraWSDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CTerraWSDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTerraWSDocument* CTerraWSDocument::NewL(CEikApplication& aApp)
	{
	CTerraWSDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CTerraWSDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CTerraWSDocument* CTerraWSDocument::NewLC(CEikApplication& aApp)
	{
	CTerraWSDocument* self = new (ELeave) CTerraWSDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CTerraWSDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CTerraWSDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CTerraWSDocument::CTerraWSDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CTerraWSDocument::CTerraWSDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CTerraWSDocument::~CTerraWSDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CTerraWSDocument::~CTerraWSDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CTerraWSDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CTerraWSDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CTerraWSAppUi;
	}

// End of File
